<template>
  <div id="box">
    <div class="song-box">
      <img :src="data.al.picUrl" alt class="pic" />
      <div class="content">
        <p class="title">{{data.name}}</p>
        <p class="author">{{data.ar[0].name}}</p>
      </div>
      <div class="time">
        {{data.dt|time()}}
      </div>
      <img src="../../../assets/images/pause.png" alt class="play" />
    </div>
  </div>
</template>

<script>
export default {
    name:"SongsItem",
    props:{
        data:{
            type:Object,
            required:true
        }
    }
};
</script>

<style scoped>
.song-box{
    width:100%;
    height: 150px;
    padding:25px 20px;
    box-sizing: border-box;
    display:flex;
    flex-direction: row;
    align-items: center;
}
.pic{
    width:100px;
    height: 100px;
    margin-right: 40px;
}
.content{
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    height:100px;
    width:380px;
    margin-right:40px;
}
.title{
    height: 60px;
    line-height: 60px;
    font-size: 36px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    word-wrap: normal;
}
.author{
  height: 40px;
  line-height: 40px;
  font-size: 30px;
  color: rgb(197, 197, 197)
}
.time{
  width:50px;
  height: 100px;
  line-height: 100px;
  text-align: center;
  font-size: 16px;
  margin: 0 15px;
}
.play{
    width:70px;
    height: 70px;
}
#box{
  min-height: 100%;
  position: relative;
  z-index: 100;
}
</style>